Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically) |
您所在的位置:网站首页 › command buttons › Conditional command buttons (shown on condition based on model values and/or invoking CUD operations programmatically) |
I need the ability to show or hide command buttons based on a row's property. I am aware that I can just cancel commands, but in my opinion, a command button should not even be shown when the command can't or shouldn't be executed on a row. Unfortunately, I was unable to find a way to access the "context" (the instance) in a TelerikGridCommandColumn the same way you're able to in a normal TelerikGridColumn. --- ADMIN EDIT You can Vote for and Follow this request for a follow up on providing the model as context to the command column: https://feedback.telerik.com/blazor/1461283-pass-the-model-context-to-command-button. At the moment, conditional command buttons are possible in a "normal" column through the grid state, the page above shows an example. --- |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |